package com.mew.lobby.message.response;

import com.mew.common.rest.MewResponse;
import io.netty.buffer.ByteBuf;
import lombok.*;

@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class MailReceiveResponse extends MewResponse<MailReceiveResponse> {
    private int mailId;//邮件ID
    private long goldNumber;//筹码
    private long jewelNumber;//砖石
    private long couponNumber;//点券

    @Override
    public void write(ByteBuf b) {
        writeInt(b,mailId);
        writeLong(b,goldNumber);
        writeLong(b,jewelNumber);
        writeLong(b,couponNumber);
    }

    @Override
    public MailReceiveResponse read(ByteBuf byteBuf) {
        return null;
    }
}
